#include "stdafx.h"
#include "resource.h"
#include "GlwBottomBar.h"

const int BOTTOM_HEIGHT = 200;
const DWORD BK_COLOR = RGB(90, 107, 226);


IMPLEMENT_DYNAMIC(GlwBottombar, GlwHorizontalBar);

BEGIN_MESSAGE_MAP(GlwBottombar, GlwHorizontalBar)
	ON_WM_PAINT()
	ON_WM_CREATE()
	ON_WM_ERASEBKGND()
	ON_MESSAGE(WM_ACAD_KEEPFOCUS, onAcadKeepFocus)
END_MESSAGE_MAP()


GlwBottombar::GlwBottombar(void) : m_pSubDlg(NULL) { }

GlwBottombar::~GlwBottombar(void)
{
	if (m_pSubDlg)
	{
		m_pSubDlg->DestroyWindow();
		delete m_pSubDlg;
	}
}

/*int GlwBottombar::OnCreate( LPCREATESTRUCT lpCreateStruct )
{
	CRect rect;

	m_pSubDlg = new CDialog;
	m_pSubDlg->Create(IDD_DLG_BOTTOM, this);

	GetWindowRect(rect);
	m_pSubDlg->MoveWindow(CRect(rect.Width()/2-5, 0, rect.Width(), rect.Height()));
	m_pSubDlg->ShowWindow(SW_SHOW);
	return TRUE;
}
*/
